package beans;

import entities.Articulos;
import controllers.ArticulosFacade;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean(name = "articulosController")
@ViewScoped
public class ArticulosController extends AbstractController<Articulos> implements Serializable {

    @EJB
    private ArticulosFacade ejbFacade;

    public ArticulosController() {
        super(Articulos.class);
    }

    @PostConstruct
    public void init() {
        super.setFacade(ejbFacade);
    }
}
